using System;
using System.Collections.Generic;
using System.Text;
using NBear.Common;

namespace EntitiesImpl
{
    public class SampleEntity : Entity<Entities.SampleEntity>, Entities.SampleEntity
    {
        public SampleEntity() : base() { }

        public int ID
        {
            get { return (int)keyValues[0]; }
            set
            {
            }
        }

        public string Name
        {
            get { return (string)keyValues[1]; }
            set
            {
                CheckOriginalKeyValues();
                keyValues[1] = value;
            }
        }

        public KeyValueCollection GetKeyValues() { return keyValues; }

        public new KeyValueCollection GetOriginalKeyValues() { return GetOriginalKeyValues(); }

        public new void UpdateOriginalKeyValues() { UpdateOriginalKeyValues(); }

    }

}
